From: Carlos Garnacho Date: Tue, 28 Jun 2022 21:45:15 +0000 (+0200) Subject: swipeTracker: Set up 1fg drag gesture in capture phase X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~461^2^2~6 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=d8431362472ae98d330f06ac838b97ac9c749ab9;p=gnome-shell.git swipeTracker: Set up 1fg drag gesture in capture phase This should be handled in the capture phase so containers setting up the drag gesture have an opportunity to handle events from children. This also follows what the 3fg swipe gesture does. Part-of: --- diff --git a/js/ui/swipeTracker.js b/js/ui/swipeTracker.js index 0781fec81..869f977c5 100644 --- a/js/ui/swipeTracker.js +++ b/js/ui/swipeTracker.js @@ -503,7 +503,7 @@ var SwipeTracker = GObject.registerClass({ this.bind_property('orientation', this._dragGesture, 'orientation', GObject.BindingFlags.SYNC_CREATE); this.bind_property('distance', this._dragGesture, 'distance', 0); - actor.add_action(this._dragGesture); + actor.add_action_full('drag', Clutter.EventPhase.CAPTURE, this._dragGesture); } else { this._dragGesture = null; }